home *** CD-ROM | disk | FTP | other *** search
-
- HOW TO USE SWAT.COM
-
-
- SWAT.COM is a utility to detect and delete temporary
- files. Temporary files typically have 8 character file
- names that are numeric. The extensions are typically
- TMP allthough a temporary file can have any extension
- or no extension.
-
- To obtain a license and permanent copy of SWAT.COM, send
- $25 US currency to:
-
- COMPUTER PRODUCTS implementation
- 6443 Wilkinson Av.
- North Hollywood, CA 91606
- U. S. A.
-
- Please specify disk format, 3 1/2" or 5 1/4",
- or for fastest reponse provide your E-mail
- address.
-
- Why is SWAT needed? Application programs, such as
- FoxPro, need more memory than is available in any CPU.
- To get this additional memory, the program creates a
- temporary file to hold intermediate results. When the
- program terminates, the temporary file is deleted. But
- if the application program terminates abnormally, the
- temporary file may not be deleted. This temporary file
- is orphaned because the application program will create
- a new temporary file the next time it executes. Over
- a period of time these orphaned temporary files accum-
- ulate on the hard disk, creating a shortage of available
- disk space for growth. The accumulation of orphaned
- disk files is also a drag on directory searches, and
- this can slow down the process to open a file. Since
- orphaned temporary files serve no useful purpose, SWAT
- them out from time to time. Here are the details:
-
- SWAT.COM has several options which can be activated with
- command line parameters or interactively. For example:
-
- SWAT -l -i tmp dbf idx . -a -r -p f:\gldist -d 9/28/94
-
- where:
- -l requires SWAT to present each temporary file to
- the user to decide individually which files to
- delete, i.e. to confirm each deletion before it
- occurs.
-
- -i requires SWAT to delete only those temporary
- files with the extensions that follow:
- tmp, dbf, idx and no extension (represented
- by ".")
-
- -a requires SWAT to allow the characters A..F in
- file names in any position but the first.
- (Temporary files created by early versions of
- DOS had ASCII representations of hex digits in
- positions two through eight.)
-
- -r requires SWAT to recursively search subdirectories
- of the requested pathname.
-
- -p presents SWAT with the full pathname (device and
- directory) to search: f:\gldist.
-
- -d requires SWAT to restrict the deletion of temporary
- files to those with file dates earlier than the
- parameter 9/28/94.
-
- The general form of the command line is:
-
- SWAT [-x [prm [prm [prm [...]]]]] [-x [prm [prm [...]]]] ...
-
- where "-x" is an option switch (usually lower case)
- and prm is a related parameter of "-x", depending on
- whether the particular switch requires a parameter
- or parameters. The switches and their parameters
- can be presented to SWAT in any order.
-
- If no switches/parameters follow SWAT, the user is
- presented with a useage screen and the choice to continue
- by interactively entering switches/parameters. Note
- that the demo version of SWAT does not support command
- line switches and their parameters. Users of the demo
- version, however, can interactively command SWAT to do
- anything that can be done with command line parameters.
-
- The full set of switches and parameters currently
- recognized by SWAT are:
-
- -a allow A..F in file names for positions 2..9 of
- filename as well as the default characters of 0..9.
- The first position is always restricted to 0..9.
-
- -B delete only, and all, files with an extension of bak
- (no test made to determine if file is temporary).
- Conditioning for cut-off date, read-only or hidden
- statuses still apply. This is useful for eliminating
- the accumuation of "bak" files.
-
- -b delete any file with a bak extension in addition to
- temporary files. Conditioning for cut-off date,
- read-only or hidden statuses still apply. This is
- useful for eliminating the accumuation of "bak"
- files.
-
- -c <d> curt (short) file names, i.e. file names less
- than 8 characters long. A one character parameter
- in the range '1' .. '8' is required to specify the
- minimum name length. For example, the switch and
- parameter -c 5 permit deletion of temporary files
- with 5 to 8 character file names.
-
- -d <mm/dd/yy> cut-off date (system date is default).
- Only files with the same or earlier directory dates
- are eligible for deletion. Alternatively, a relative
- date can be specified with
-
- -d rd
-
- where r is 'r' or 'R' and d is a number. swat computes
- the cut-off date as the system date less d days. If the
- system date is, say, 9/28/94 and the switch and parameter
- are -d R30, then the cut-off date is 30 days prior to
- 9/28/94, or 8/29/94. This is useful to always delete
- temporary files that are, say, 7 days old or older.
-
- -e exclude extensions of prm prm ... prm succeeding
- parameters, maximum of 16 extensions. (Default is no
- exclusions). Any such entry will override previously
- established inclusions or exclusions, if any. To
- exclude temporary files with no extension, enter ".".
- Note that switch "-e" will negate any prior switch of
- "-i". The switches -e and -i are mutually exclusive
- because, logically, the definition of extensions to
- exclude guarantees inclusion of all other extensions.
-
- -h include hidden temporary files as eligible for
- deletion.
-
- -i include extensions of prm prm ... prm succeeding
- parameters, maximum of 16 extensions. (Default is
- include all extensions). Any such entry will override
- previously established inclusions or exclusions, if
- any. To include temporary files with no extension,
- enter ".". Note that switch "-i" will negate any
- prior switch of "-e". The switches -e and -i are
- mutually exclusive because, logically, the definition
- of extensions to include guarantees exclusion of all
- other extensions.
-
- -l list the file name for the user to confirm deletion
- (default is to delete without asking).
-
- -o include read-only temporary files (default is to exclude
- read-only temporary files).
-
- -p <pathname> The full pathname with device if different
- from currently selected drive and directory (current
- device and directory are default)
-
- -r recursively search all subdirectories for temporary
- files.
-
- -s hour[:minutes[:seconds[P]]] to delay start time to.
- Example: -s 9:55:30P will delay program start until
- 9:55:30 P.M. (21:55:30). (Default is to start
- immediately.)
-
- -v omit view of all switch settings and their parameters
- with an option to proceed or cancel. If there is no
- -v switch, SWAT will display all switches and their
- parameters and prompt the user for permission to
- continue. This is very safe and helpful to users who
- need to check the results of their switches and
- parameter settings before proceeding.
-
- In addition to the freedom of entering the switches and
- their parameters in any order, or omitting any of them,
- white space separating a switch from its parameters is
- optional. That is, the cut-off date can be presented
- as -d 9/28/94 or -d9/28/94.
-
- To facilitate users who wish to run SWAT on a regular
- basis with the same parameters, all parameters, or any
- subset, can be placed in a parameter file and presented
- to SWAT on the command line preceeded immediately with
- the character "@". That is,
-
- SWAT @params -d 9/28/94
-
- is equivalent to the initial example if the file params
- is:
-
- -l -i tmp dbf idx . -a -r -p f:\gldist
-
- or equivalently:
-
- -l
- -i tmp dbf idx .
- -a
- -r
- -p f:\gldist
-
- That is, in parameter files switches and their parameters
- can be on one line or succeeding lines: SWAT treats
- newline characters as white space. Note that switches
- and their parameters can be presented on both the command
- line and in one or more parameter files.
-
- For those of a recursive frame of mind, SWAT will
- recognize parameter files within parameter files.
- The above example for the file params could be:
-
- -l -i tmp dbf idx .
- @params2
-
- where the file params2 contains
-
- -a -r -p f:\gldist
-
- With the recursion feature a user can maintain all the
- permanent choices in one file, and vary the others in a
- short file, or enter them separately on the command line
- either before or after the permanent parameter file
- reference.
-
- Good luck in SWATting those pesky orphaned temporary
- files that are clogging your disk drives!
-
- To obtain a license and permanent copy of SWAT.COM, send
- $25 US currency to:
-
- COMPUTER PRODUCTS implementation
- 6443 Wilkinson Av.
- North Hollywood, CA 91606
- U. S. A.
-
- Please specify disk format, 3 1/2" or 5 1/4",
- or for fastest reponse provide your E-mail
- address for an immediate file upload.
-
-
- COMPUTER PRODUCTS implementation
- September 10, 1994
-
-